#include <iostream>
using namespace std;
const int L=256;
int h[L+1]= {0};
int main_37()
{
    int n,m,l,grey_level,pixel_num;
    scanf("%d%d%d",&n,&m,&l);
    pixel_num=n*m;
    for (int i=0; i<pixel_num ; i++ )
    {
        scanf("%d",&grey_level);
        h[grey_level]++;
    }
    for (int i=0; i<l ; i++ )
    {
        printf("%d ",h[i]);
    }
    return 0;
}
